$(function(){
	$("#searchIntraFieldCar_dategrid").datagrid_init;
	/*==初始化表格*/
	$('#searchIntraFieldCar_dategrid').datagrid({
		loadMsg : "数据加载中",
        emptyMsg : "数据加载完成,当前无数据!",
		border:false,
		fit : true,
		title : "场内车辆查询",
		fitColumns : true,
		pagination : true,
		rownumbers : true,
		singleSelect : true,
		toolbar:"#searchIntraFieldCar_dategrid_toolbar",
		columns : [ [
		    // {field : 'id',				title : '主键',			width:50 , align:'center',hidden:true},
		    {field : '1',		title : '车牌号',			width:50 , align:'center',hidden:false},
		    {field : '2',				title : '归属地',			width:50 , align:'center',hidden:false,
		    	formatter: function(value,row,index){
					return 	value;
				}
		    },
		    {field : '3',			title : '进入时间',		width:50 , align:'center',hidden:false,
		    	formatter: function(value,row,index){
                    return 	value;
				}
		    },

		    {field : '4',			title : '截图',		width:50 , align:'center',hidden:false,
		    	formatter: function(value,row,index){
		    		return value;
		    	}
		    }
		] ],
        onLoadSuccess:function(data){
            $(this).datagrid('doCellTip',{'max-width':'300px','delay':500});
        }
	});

	// var params = {};
	// $("#searchIntraFieldCar_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordList",JSON.stringify(params),"","" );

    /*查询按钮*/
	/*$("#searchIntraFieldCar_btn_search").linkbutton({
		onClick:function(){
			var name = $("#searchIntraFieldCar_Name").textbox("getValue");
            var datebegin=$.trim($("#searchIntraFieldCar_DateBegin").datetimebox('getValue'));
            var dateend=$.trim($("#searchIntraFieldCar_DateEnd").datetimebox('getValue'));
			var params = {};
			params.name = name;
			params.datebegin = datebegin;
			params.dateend = dateend;
            $("#searchIntraFieldCar_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordList",JSON.stringify(params),"","" );
		}
	});*/

});
	